﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// 网站配置参数
/// </summary>
public class Configuration
{
	//
	// 属性
	//
	public int nNormal;
	public int nDelete;
	public int nFirst;		// 一级栏目
	public int nSecond;		// 二级栏目
	public int nThird;		// 三级栏目
	public int nNoFather;		// 没有上级栏目
	public int nWebColumn;		// 前台栏目
	public int nAdminColumn;	// 后台栏目
	public int nWebLargeColumn = 2;
	public string[] strArrColumnType;		// 栏目类别数组
	public string[] strArrDepartmentGrade;		// 单位界别对应的值的数组

	public int nNoFatherDepartment;	// 单位表中没有上级单位了
	public int nFirstDepartment;		// 一级单位
	public int nAllDepartment;		// 查询时查询全部单位

	#region 构造函数
	public Configuration()
	{
		nNormal = 1;
		nDelete = 2;
		nFirst = 1;
		nSecond = 2;
		nThird = 3;
		nNoFather = 0;
		
		nAdminColumn = 0;
		nWebColumn = 1;

		strArrColumnType = new string[3];
		strArrColumnType[nAdminColumn] = "后台栏目 ";
		strArrColumnType[nWebColumn] = "前台栏目";
		strArrColumnType[nWebLargeColumn] = "前台大文件栏目"; 

		nNoFatherDepartment = 0;
		strArrDepartmentGrade = new string[1];
		strArrDepartmentGrade[nNoFatherDepartment] = "无";
		nFirstDepartment = 1;
		nAllDepartment = -1;
	}


	#endregion
}
